package com.example.listossimage.controller;

import com.example.listossimage.threadpool.ThreadPoolTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 线程池案例
 */
@RestController
public class ThreadTestController {

    @Autowired
    ThreadPoolTestService threadPoolTestService;

    @GetMapping("/test")
    public void testThread() {
        threadPoolTestService.testThread();
    }
}
